package cn.edu.swpu.cins.u_chain.backend.dao;


import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.*;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.company.BusinessScope;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.other.ProfessionalKind;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.other.ProfessionalName;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.student.SkillKind;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.student.SkillName;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BackendUserDao {
    int addProvince(Province province);
    List<Province> selectAllProvince();
    int updateProvince(int provinceId);
    int deleteProvince(int provinceId);

    int addCity(City city);
    List<City> selectAllCity();
    int updateCity(int cityId);
    int deleteCity(int cityId);

    int addCounty(County county);
    List<County> selectAllCounty();
    int updateCounty(int countyId);
    int deleteCountyId(int countyId);

    int addDegree(Degree degree);
    List<Degree> selectAllDegree();
    int updateDegree(int degreeId);
    int deleteDegree(int degreeId);

    int addGrade(Grade grade);
    List<Grade> selectAll();
    int updateGrade(int gradeId);
    int deleteGrade(int gradeId);


    int addMajor(Major major);
    List<Major> selectAllMajor();
    int updateMajor(int majorId);
    int deleteMajor(int majorId);

    //添加学校信息
    int addSchoolInfo(SchoolInfo schoolInfo);
    List<SchoolInfo> selectAllSchool();
    int updateSchoolInfo(int schoolId);
    int deleteSchoolInfo(int schoolId);

    //添加职业种类信息
    int addProfessionalKind(ProfessionalKind professionalKind);
    List<ProfessionalKind> selectAllProfessionalKind();
    int updateProfessionalKind(int professionalKindId);
    int deleteProfessionalKind(int professionalKindId);

    //添加职业名字信息
    int addProfessionalName(ProfessionalName skillName);
    List<ProfessionalName> selectAllProfessionalName();
    int updateProfessionalName(int professionalId);
    int deleteProfessionalName(int professionalId);

    //添加技能种类
    int addSkillKind(SkillKind skillKind);
    List<SkillKind> selectAllSkillKind();
    int updateSkillKind(int skillKindId);
    int deleteSkillKind(int skillKindId);

    //添加技能
    int addSkillName(SkillName skillName);
    List<SkillName> selectAllSkillName();
    int updateSkillName(int skillNameId);
    int deleteSkillName(int skillNameId);

    //添加商业范围信息
    int addBusinessScope(BusinessScope scope);
    List<BusinessScope> selectAllBusinessScope();
    int updateBusinessScope(int businessScopeId);
    int deleteBusinessScope(int businessScopeId);
}
